package com.wz.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class MyPicConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/picture/**").
                addResourceLocations("file:G:/Springboot大作业/springboot-project-master/springboot-anli/src/main/resources/static/picture/");
        registry.addResourceHandler("/table/**").
                addResourceLocations("file:G:/Springboot大作业/springboot-project-master/springboot-anli/src/main/resources/static/table/");

    }

}
